package com.yz.restructure.chapter2.afterrestructure;

/**
 * Remove Assignments to Parameters(移除对参数的赋值)
 * Created by Temp on 2017/9/13.
 */
public class RemoveAssignmentsToParameters {
    public static void triple(int arg) {
        arg = arg + 3;
        System.out.println("arg in triple:" + arg);
    }

    public static void main(String[] args) {

        int x = 5;
        triple(x);
        System.out.println("x after triple:" + x);
//        arg in triple:8
//        x after triple:5

    }
}
